package com.example.java_gobang;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

/**
 * 使用@SpringBootApplication表示是SpringBoot启动类
 */
@SpringBootApplication
public class JavaGobangApplication {

    // 启动时获取Spring上下文
    public static ConfigurableApplicationContext context;

    /**
     * SpringBoot项目，是通过main方法启动
     * @param args
     */
    public static void main(String[] args) {
        context = SpringApplication.run(JavaGobangApplication.class, args);
    }

}
